{extend name="layout"}
{block name="style"}{/block}
{block name="left_main"}
  <ul class="layui-nav layui-nav-tree" style="width:100%;">
    <li class="layui-nav-item {if in_array(request()->action(),['index'])}layui-this{/if}"><a href="{:url('user/index')}">用户中心</a></li>
   
  </ul>
{/block}
{block name="right_main"}
<div class="teacher">
  <div class="layui-tab layui-tab-card">
    <ul class="layui-tab-title">
      <li class="layui-this">个人资料</li>
    </ul>
      
    <div class="layui-tab-content">
      <div class="layui-tab-item layui-show" style="padding:30px;">
        <div class="layui-row">
          <div class="layui-col-xs3" style="text-align:center">
          </div>
          <div class="layui-col-xs6">
              
            <form class="layui-form" method="post" action="">
              <div class="layui-form-item">
                <label class="layui-form-label">账号</label>
                <div class="layui-input-block">
                  <input type="text" value="{$user['username']?:''}" disabled class="layui-input">
                </div>
              </div>
                
              <div class="layui-form-item">
                <label class="layui-form-label">密码</label>
                <div class="layui-input-block">
                  <input type="text" name="password" value="" class="layui-input">
                </div>
              </div>
                
              <div class="layui-form-item">
                <label class="layui-form-label">姓名</label>
                <div class="layui-input-block">
                  <input type="text" name="name" value="{$user['name']?:''}" class="layui-input">
                </div>
              </div>
                
              <div class="layui-form-item">
                <label class="layui-form-label">手机号</label>
                <div class="layui-input-block">
                  <input type="text" name="mobile" value="{$user['mobile']?:''}" class="layui-input">
                </div>
              </div>

              <div class="layui-form-item">
                <div class="layui-input-block">
                  <button class="layui-btn" lay-submit lay-filter="formDemo">保存修改</button>
                </div>
              </div>
            </form>
          </div>
          <div class="layui-col-xs3">
          </div>
        </div>

      </div>
    </div>
  </div>
</div>
{/block}
{block name="script"}
<script>
    layui.use(['layer','jquery','form'],function(){
      var $ = layui.jquery;
      var form = layui.form;
      //监听提交
      form.on('submit(*)', function(data){
        data.form.submit();
        return true;
      });
    });
  </script>
<!--<script type="text/javascript">
layui.use(['form','laydate'], function(){
  var form = layui.form;
  var laydate = layui.laydate;
  laydate.render({elem:'#birthday'})
  //监听提交
  form.on('submit(formDemo)', function(data){
    layer.msg(JSON.stringify(data.field));
    return false;
  });
});
</script>-->
{/block}
